<?php
// $id		$

/*
 * test class
 */
class testClass {
	public $var;

	/**
	 * This is simple constructor
	 * for class
	 *
	 * @param mixed $options
	 */
	public function __construct($options = array()) {
		if (array_key_exists('var', $options)) {
			$this->var = $options['var'];
		}
	}

	/**
	 * Magic function for use object as
	 * string
	 *
	 * @return string
	 */
	public function __toString() {
		return $this->var;
	}
	/**
	 * Class destructor
	 *
	 */
	public function __destructor() {
		echo 'Destructor of '. __CLASS__;
	}
}

?>